 	<div class="page-header">
		<h1>出荷検索</h1>
	</div>
     検索条件
     <?php echo validation_errors(); ?>
    <form class="" action= "search"  method="post" > 
    <table class="table table-bordered">
    	<tr>
	    	<td width="15%">カテゴリ</td>
	    	<td colspan="3">
	    		<SELECT>
				<OPTION value="1">all</OPTION>
				<OPTION value="2" selected>ー食べ物</OPTION>
				<OPTION value="3">ーー米</OPTION>
				<OPTION value="4">ーー牛乳</OPTION>
				<OPTION value="5">ー服</OPTION>
				<OPTION value="6">ーー子供</OPTION>
				<OPTION value="7">ーー男子用</OPTION>
				</SELECT>
	    	</td>
   		</tr>
    	<tr>
	    	<td width="15%">商品コード</td>
	    	<td width="35%">
		    	<input type = "text" class = "" name = "s_commoditycode_from" id = "s_commoditycode_from" value = "<?php echo set_value('s_commoditycode_from'); ?>" placeholder = "" />
		    	<input type = "text" class = "" name = "s_commoditycode_to" id = "s_commoditycode_to" value = "<?php echo set_value('s_commoditycode_to'); ?>" placeholder = "" />
	    	</td>
	    	<td width="15%">SKUコード</td>
	    	<td width="35%">
		    	<input type = "text" class = "" name = "s_skucode" id = "s_skucode" value = "" placeholder = "" />
	     	</td>
    	</tr>
   		<tr>
	    	<td width="15%">商品名</td>
	    	<td width="35%">
		    	<input type = "text" class = "" name = "s_commodityname" id = "s_commodityname" value = "" placeholder = "" />
	      	</td>
	    	<td width="15%">検索キーワード</td>
	    	<td width="35%">
		    	<input type = "text" class = "" name = "s_keyword" id = "s_keyword" value = "" placeholder = "" />
	      	</td>
	    </tr>
    	<tr>
	    	<td width="15%">商品販売開始日</td>
	    	<td colspan="3">
	    		<input type = "text" class = "" name = "s_sales_start_from" id = "s_sales_start_from" value = "" /> 〜
	    		<input type = "text" class = "" name = "s_sales_start_to" id = "s_sales_start_to" value = "" />
	    	</td>
	    </tr>
    	<tr>
	    	<td width="15%">商品販売終了日</td>
	    	<td colspan="3">
	    		<input type = "text" class = "" name = "s_sales_end_from" id = "s_sales_end_from" value = "" /> 〜
	    		<input type = "text" class = "" name = "s_sales_end_to" id = "s_sales_end_to" value = "" />
	    	</td>
	    </tr>
    	<tr>
	    	<td width="15%">在庫状況</td>
	    	<td colspan="3">
				<input type="radio" name="stock" value="1" checked="checked">  ari	    		
	    		<input type="radio" name="stock" value="0" checked="checked">  nasi  		
	       	</td>
	    </tr>
    	<tr>
	    	<td width="15%">公開区分</td>
	    	<td>
				<input type="checkbox" name="s_sales_flg" value="1"> 公開中
				<input type="checkbox" name="s_sales_flg" value="0"> 非公開中
	    	</td>
	    	<td width="15%">適用期間</td>
	    	<td>
	    		<input type="checkbox" name="s_sales_flg" value="1"> 公開中
				<input type="checkbox" name="s_sales_flg" value="0"> 非公開中
	    	</td>
	    </tr>
	    
   	</table>
   	<button type="submit" class="btn btn-default">検索</button>
   	</form>
   	<br />
      	
   	<div class="bs-example" data-example-id="striped-table">
    <table class="table table-bordered">
      <thead>
        <tr>
          <th>#</th>
          <th> </th>
          <th>商品コード</th>
          <th>商品名</th>
          <th>販売価格<br />在庫</th>
          <th>公開区分<br />適用期間</th>
          <th>関連付け</th>
        </tr>
      </thead>
	<?php
	foreach($list as $entry){
	?>
      <tbody>
        <tr>
          <th scope="row">1</th>
          <td>　</td>
          <td><?=$entry->COMMODITY_CODE?></td>
          <td><a href="/zswebshop/index.php/admin/commodity/detail/<?=$entry->COMMODITY_CODE?>"><?=$entry->COMMODITY_NAME?></a></td>
          <td>　</td>
          <td>　</td>
          <td>　</td>
        </tr>
      </tbody>
	<?php
	}
	?>
    </table>
  </div><!-- /example -->
 